package com.example.mobile2121606110syc0509;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class showDataActivity extends AppCompatActivity {

    private TextView tvShowDataUsername;
    private TextView tvShowDataPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_data);
        initView();
        Intent intent = getIntent();
        tvShowDataUsername.setText(intent.getStringExtra("userName"));
        Bundle bundle = intent.getExtras();
        tvShowDataPassword.setText(bundle.getString("passWord"));
    }

    private void initView() {
        tvShowDataUsername = (TextView) findViewById(R.id.tvShowDataUsername);
        tvShowDataPassword = (TextView) findViewById(R.id.tvShowDataPassword);
    }
}